<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The CairoFontOptions class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="cairofontface.status.html">CairoFontFace::status</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="cairofontoptions.construct.html">CairoFontOptions::__construct</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.cairofontoptions" class="reference">

 <h1 class="title">The CairoFontOptions class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL cairo &gt;= 0.1.0)</p>


  <div class="section" id="cairofontoptions.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    An opaque structure holding all options that are used when rendering fonts.
   </p>
   <p class="para">
       Individual features of a cairo_font_options_t can be set or accessed using functions named
       cairo_font_options_set_feature_name and cairo_font_options_get_feature_name, like
       cairo_font_options_set_antialias() and cairo_font_options_get_antialias().
   </p>
   <p class="para">
       New features may be added to <strong class="classname">CairoFontOptions</strong> in the future. For this reason
       <span class="methodname"><strong>CairoFontOptions::copy()</strong></span>, <span class="methodname"><a href="cairofontoptions.equal.html" class="methodname">CairoFontOptions::equal()</a></span>,
       <span class="methodname"><a href="cairofontoptions.merge.html" class="methodname">CairoFontOptions::merge()</a></span>, <span class="methodname"><a href="cairofontoptions.hash.html" class="methodname">CairoFontOptions::hash()</a></span>
       (cairo_font_options_copy(), cairo_font_options_equal(), cairo_font_options_merge(), and cairo_font_options_hash()
       in procedural way) should be used to copy, check for equality, merge, or compute a hash value of
       <strong class="classname">CairoFontOptions</strong> objects.
   </p>
  </div>


  <div class="section" id="cairofontoptions.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">CairoFontOptions</strong>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="cairofontoptions.construct.html" class="methodname">__construct</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="cairofontoptions.equal.html" class="methodname">equal</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$other</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="cairofontoptions.getantialias.html" class="methodname">getAntialias</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="cairofontoptions.gethintmetrics.html" class="methodname">getHintMetrics</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="cairofontoptions.gethintstyle.html" class="methodname">getHintStyle</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="cairofontoptions.getsubpixelorder.html" class="methodname">getSubpixelOrder</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="cairofontoptions.hash.html" class="methodname">hash</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="cairofontoptions.merge.html" class="methodname">merge</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$other</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="cairofontoptions.setantialias.html" class="methodname">setAntialias</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$antialias</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="cairofontoptions.sethintmetrics.html" class="methodname">setHintMetrics</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$hint_metrics</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="cairofontoptions.sethintstyle.html" class="methodname">setHintStyle</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$hint_style</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="cairofontoptions.setsubpixelorder.html" class="methodname">setSubpixelOrder</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$subpixel_order</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="cairofontoptions.status.html" class="methodname">status</a></span>
    ( <span class="methodparam">void</span>
    )</div>

   }</div>


  </div>

 </div>

 




























































































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="cairofontoptions.construct.html">CairoFontOptions::__construct</a> — The __construct purpose</li><li><a href="cairofontoptions.equal.html">CairoFontOptions::equal</a> — The equal purpose</li><li><a href="cairofontoptions.getantialias.html">CairoFontOptions::getAntialias</a> — The getAntialias purpose</li><li><a href="cairofontoptions.gethintmetrics.html">CairoFontOptions::getHintMetrics</a> — The getHintMetrics purpose</li><li><a href="cairofontoptions.gethintstyle.html">CairoFontOptions::getHintStyle</a> — The getHintStyle purpose</li><li><a href="cairofontoptions.getsubpixelorder.html">CairoFontOptions::getSubpixelOrder</a> — The getSubpixelOrder purpose</li><li><a href="cairofontoptions.hash.html">CairoFontOptions::hash</a> — The hash purpose</li><li><a href="cairofontoptions.merge.html">CairoFontOptions::merge</a> — The merge purpose</li><li><a href="cairofontoptions.setantialias.html">CairoFontOptions::setAntialias</a> — The setAntialias purpose</li><li><a href="cairofontoptions.sethintmetrics.html">CairoFontOptions::setHintMetrics</a> — The setHintMetrics purpose</li><li><a href="cairofontoptions.sethintstyle.html">CairoFontOptions::setHintStyle</a> — The setHintStyle purpose</li><li><a href="cairofontoptions.setsubpixelorder.html">CairoFontOptions::setSubpixelOrder</a> — The setSubpixelOrder purpose</li><li><a href="cairofontoptions.status.html">CairoFontOptions::status</a> — The status purpose</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="cairofontface.status.html">CairoFontFace::status</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="cairofontoptions.construct.html">CairoFontOptions::__construct</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
